home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.757 < prev    next >
Text File  |  1992-02-06  |  1KB  |  48 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fswiss Helvetica;}
  2. \paperw13040
  3. \paperh10800
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 NXImageRep NXEPSImageRep draw\
  8.  
  9. \b \
  10.  
  11. \b0 Q:  In some cases the 
  12. \b draw
  13. \b0  method of NXEPSImageRep seems to change the current transformation matrix (CTM).  When does this happen, and is it a bug?\
  14. \
  15.  
  16. A:  Some of the 
  17. \b drawIn:
  18. \b0  and 
  19. \b drawAt:
  20. \b0  methods in the various NXImageRep subclasses are documented as changing the transformation matrix.  They do this without restoring the original matrix, leaving it to the developer to determine if they need to put a 
  21. \b gsave/grestore
  22. \b0  pair around their call.\
  23. \
  24. The NXEPSImageRep 
  25. \b draw
  26. \b0  method is not documented as changing the CTM; however, if the origin of the bounding box in the EPS file is not 0,0, this method will cause a 
  27. \b translate
  28. \b0 .  Thus this method might also need to be protected with a 
  29. \b gsave/grestore
  30. \b0  pair.\
  31. \
  32. For 2.0 and any compatible release after that, it's probably safest to assume that the 
  33. \b draw
  34. \b0 ,
  35. \b  drawIn:
  36. \b0 , and 
  37. \b drawAt:
  38. \b0  methods can change the CTM; thus developers should restore it if they need to rely on it after the method returns.\
  39.  \
  40. \
  41.  
  42. \fc0 QA757\
  43. \
  44. Not valid for 1.0\
  45. Valid for 2.0\
  46. \
  47.  
  48.